package cn.sjtu.syo.consumer.service;

import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

/**
 * @author syo 2319615164@qq.com
 * @description
 * @date 2024/9/25
 * @Copyright syo
 */
@Component
public class MQListenerService {

    @RabbitListener(queues = "simple.queue")
    public void listenToSimpleQueue(String msg) {
        System.out.println("接收到消息：" + msg );
    }
}
